package com.hmc.modules.material.service.tqmtqwr.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hmc.common.service.impl.CrudServiceImpl;
import com.hmc.common.constant.Constant;
import com.hmc.modules.material.dao.tqmtqwr.TqmtqwrDao;
import com.hmc.modules.material.dto.tqmtqwr.TqmtqwrDTO;
import com.hmc.modules.material.entity.tqmtqwr.TqmtqwrEntity;
import com.hmc.modules.material.service.tqmtqwr.TqmtqwrService;
import com.hmc.modules.security.user.SecurityUser;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 检化验实绩_防腐拉伸
 *
 * @author hmc wengxiulinluman@qq.com
 * @since 3.0 2023-11-30
 */
@Service
public class TqmtqwrServiceImpl extends CrudServiceImpl<TqmtqwrDao, TqmtqwrEntity, TqmtqwrDTO> implements TqmtqwrService {

    @Override
    public QueryWrapper<TqmtqwrEntity> getWrapper(Map<String, Object> params){
        QueryWrapper<TqmtqwrEntity> wrapper = new QueryWrapper<>();

        String id = (String)params.get("id");
        wrapper.eq(StringUtils.isNotBlank(id), "ID", id);

        return wrapper;
    }


}